Node-RED block in Snap4City Microservice library node-red-contrib-snap4city-user is "routing">

It allows to retrieve routing information between the start point and the end point.

Inputs

A JSON with these parameters:
routingtype string
type of transportation: car, public_transport, foot_quiet, foot_shortest
startdatetime date
date and time of the journey
startlatitude number
latitude of start point
startlongitude number
longitude of start point
endlatitude number
latitude of end point
endlongitude number
longitude of end point

Outputs

A JSON containing the information of the routing

Details

The node can receive a JSON with the parameters described in the Inputs section and with them generate the output JSON. If the values are not present in the input JSON, these are read by those in the configuration. If they are not present in either part, an error is generated for the necessary parameters.